package com.some;

import java.util.Scanner;

public class YinHang03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] split = str.split(" ");
        int[] arr = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            arr[i] = Integer.parseInt(split[i]);
        }

        int count = 0;
        int record = 0;
        for (int i = 0; i < arr.length; i++) {
            if (record >= 2) {
                count++;
                record = 0;
            }
            //如果碰到计数，则record记录
            if (arr[i] % 2 != 0) {
                record++;
            } else {
                //如果碰到偶数，则record变为零
                record = 0;
            }
        }
        System.out.println(count);
    }
}
